import request from '@/utils/request'

// 查询楼栋信息列表
export function listBuildinfo(query) {
  return request({
    url: '/system/buildinfo/list',
    method: 'get',
    params: query
  })
}

// 查询楼栋信息详细
export function getBuildinfo(buildid) {
  return request({
    url: '/system/buildinfo/' + buildid,
    method: 'get'
  })
}

// 新增楼栋信息
export function addBuildinfo(data) {
  return request({
    url: '/system/buildinfo',
    method: 'post',
    data: data
  })
}

// 修改楼栋信息
export function updateBuildinfo(data) {
  return request({
    url: '/system/buildinfo',
    method: 'put',
    data: data
  })
}

// 删除楼栋信息
export function delBuildinfo(buildid) {
  return request({
    url: '/system/buildinfo/' + buildid,
    method: 'delete'
  })
}

// 查询项目信息详细
export function appManagerSelect() {
  return request({
    url: '/system/buildinfo/appmanager',
    method: 'get'
  })
}
